export type CurdData = {
  id: number
  name: string
  country?: string
  area?: string
  address?: string
  qty: number
  pending_qty: number
  remark?: string
  creator: number
  create_time: Date
  update_time: Date
  updater?: number
  last_audit_date?: Date
  is_del: number
}

// 调拨单查询参数类型
export type TransferListParams = {
  /**
   * 开始时间
   */
  start_time?: string
  /**
   * 结束时间
   */
  end_time?: string
  /**
   * 物流单号
   */
  logistics_no?: string
  /**
   * 新仓库
   */
  new_wid?: string
  /**
   * 原仓库
   */
  old_wid?: string
  /**
   * 分页
   */
  pageIndex?: string
  /**
   * 条数
   */
  pageSize?: string
  /**
   * 商品名称
   */
  product_id?: string
}

// 调拨单列表项类型
export type TransferListItem = {
  id: number
  inventory_id: number
  number: number
  create_time: string
  product_id: number
  warehouse_id: number
  to_warehouse_id: number
  logistics_no: string
  cost: string
  product_name: string
  warehouse_name: string
  to_warehouse_name: string
}

export type FieldEnum = {
  pay_type?: {}
  pay_terms?: {}
  pay_status?: {}
  status?: {}
}

export type SelectEnum = {
  value?: number
  label?: string
}

// 调拨详情类型
export type TransferDetailItem = {
  product_name: string
  warehouse_name: string
  to_warehouse_name: string
  inventory_id: number
  number: number
  arrival_date: string
}

export type TransferDetailData = {
  logistics_no: number
  logistics_voucher_info: Array<{
    id: number
    url: string
  }>
  company_name: string
  company_id: number
  ship_date: string
  cost: string
  notes: string
  create_time: string
  iterm: TransferDetailItem[]
}
